﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="/Public/js/jquery/css/smoothness/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css">
    <script src="/Public/js/jquery/jquery-1.7.1.min.js" type="text/javascript"></script>
	<meta charset="utf-8" />
</head>
<body>
    <script type="text/javascript">
    var id = '@ViewBag.id';
    function loadPreviewFile(id) {
			$.post('/Apps/Tiger/Running/GetCebPdf', { id: id }, function (r) {
				switch (r.Status) {
					case 0:
						window.setTimeout(loadPreviewFile(id), 1000);
						break;
					case 1:
                        location.href = '/Apps/Tiger/Running/ShowCebResult?id=' + r.PreviewID
						break;
					case -1:
						alert('无法在线查看此文件的内容：'+ '\r\n\r\n请下载文件。');
						break;
				}
			}, 'json');
	}
    loadPreviewFile(id)
    </script>
</body>
</html>
